#include "stm32f10x.h" 
#include "serial.h"
#include "oled.h"

int main(void)
{
    Serial_Init();
    OLED_Init();

    while (1) 
    {
        if (Serial_GetRxFlag() == 1)
        {
            Serial_SendByte(Serial_GetRxData());
            OLED_ShowHexNum(1, 1, Serial_GetRxData(), 2);
        }
    }
}
